package com.hongyue.na3;

public class Demo {
    public static void main(String[] args) {
        p(w -> "a"+w);
        A o = o();
        String q = o.q(3);
        System.out.println(q);
    }

    public static void p(A a) {
        String q = a.q(6);
        System.out.println(q);
    }

    public static A o() {
        return new A() {
            @Override
            public String q(int w) {
                return "q" + w;
            }
        };
    }
}
